/**
 * 
 */
package org.cuatrovientos.exercise5imc;

import java.util.Scanner;

/**
 * exercise 6 imc
 * @author david_madurga
 *
 */
public class Exercise6Imc {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
			String lineWeight = "";
			String lineTall = "";
			float weight = 0;
			float height = 0;
			
		Scanner reader = new Scanner(System.in);
		
		System.out.print("Enter your weight ");
		lineWeight = reader.nextLine();
		
		System.out.print("Enter your height ");
		lineTall = reader.nextLine();
		try {
			weight= Float.parseFloat(lineWeight);
			height= Float.parseFloat(lineTall);
			weight= weight/(height*height);
			
			if (weight<16){
				System.out.println("You must eat more, Spaguetty");
				
			}else {
				
				if (weight>=16 && weight<25){
					System.out.println("You look well");
					
				}else{
					if (weight>=25 && weight<30){
						System.out.println("You should eat better ");
						
					}else{
						System.out.println("You are a very fat ball ");
					}
				}
			}
			
		} catch(NumberFormatException nfe){
			System.out.println("Error in Number Format idiot");
		}
		
		reader.close();
	}

}
